package com.entity;

import java.io.Serializable;
import java.util.List;

/**
 * @author 
 */
public class Membertype implements Serializable {
    private String mtno;

    List<Member> members;
    private String mimg;

    public List<Member> getMembers() {
        return members;
    }

    public void setMembers(List<Member> members) {
        this.members = members;
    }

    private String mtname;

    private String mtdesc;

    private String mtstate;

    private static final long serialVersionUID = 1L;

    public String getMtno() {
        return mtno;
    }

    public void setMtno(String mtno) {
        this.mtno = mtno;
    }

    public String getMimg() {
        return mimg;
    }

    public void setMimg(String mimg) {
        this.mimg = mimg;
    }

    public String getMtname() {
        return mtname;
    }

    public void setMtname(String mtname) {
        this.mtname = mtname;
    }

    public String getMtdesc() {
        return mtdesc;
    }

    public void setMtdesc(String mtdesc) {
        this.mtdesc = mtdesc;
    }

    public String getMtstate() {
        return mtstate;
    }

    public void setMtstate(String mtstate) {
        this.mtstate = mtstate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Membertype other = (Membertype) that;
        return (this.getMtno() == null ? other.getMtno() == null : this.getMtno().equals(other.getMtno()))
            && (this.getMimg() == null ? other.getMimg() == null : this.getMimg().equals(other.getMimg()))
            && (this.getMtname() == null ? other.getMtname() == null : this.getMtname().equals(other.getMtname()))
            && (this.getMtdesc() == null ? other.getMtdesc() == null : this.getMtdesc().equals(other.getMtdesc()))
            && (this.getMtstate() == null ? other.getMtstate() == null : this.getMtstate().equals(other.getMtstate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMtno() == null) ? 0 : getMtno().hashCode());
        result = prime * result + ((getMimg() == null) ? 0 : getMimg().hashCode());
        result = prime * result + ((getMtname() == null) ? 0 : getMtname().hashCode());
        result = prime * result + ((getMtdesc() == null) ? 0 : getMtdesc().hashCode());
        result = prime * result + ((getMtstate() == null) ? 0 : getMtstate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", mtno=").append(mtno);
        sb.append(", mimg=").append(mimg);
        sb.append(", mtname=").append(mtname);
        sb.append(", mtdesc=").append(mtdesc);
        sb.append(", mtstate=").append(mtstate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}